﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exercise15
{
    internal class StrFun
    {
        public int Count;        
        User UserCtrl; 
        public User GetResult(string Instring)
        {
            UserCtrl = new User(false, "Pass");             
            Count = 0;
            if (string.IsNullOrEmpty(Instring)) { UserCtrl.bIsNull = true; UserCtrl.StrMsg = "Instring Is Null "; return UserCtrl; }
            foreach (char item in Instring) {
                if (char.IsDigit(item)) { Count++; }
            }            
            return UserCtrl;
        }                
    }
}
